package cn.zhaoyuening.crm.service.impl;

import java.util.List;

import cn.zhaoyuening.crm.dao.PostDao;
import cn.zhaoyuening.crm.domain.CrmDepartment;
import cn.zhaoyuening.crm.domain.CrmPost;
import cn.zhaoyuening.crm.service.PostService;

public class PostServiceImpl implements PostService {
	private PostDao postDao;

	@Override
	public List<CrmPost> findAll(CrmDepartment department) {
		List<CrmPost> list = postDao.findAll(department);
		return list;
	}

	@Override
	public CrmPost findById(String id) {
		return postDao.findById(id);
	}
	
	
	public void setPostDao(PostDao postDao) {
		this.postDao = postDao;
	}

}
